package com.ymx.darling.spring.boot.autoconfigure;

import com.ymx.darling.log.Log;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "darling")
public class DarlingProperties {
    private String entityPackage;
    private String mapperLocations;
    private Class<? extends Log> logImpl;
    private boolean cacheEnabled;

    public DarlingProperties() {
    }

    public void setLogImpl(Class<? extends Log> logImpl) {
        this.logImpl = logImpl;
    }

    public void setCacheEnabled(boolean cacheEnabled) {
        this.cacheEnabled = cacheEnabled;
    }

    public void setEntityPackage(String entityPackage) {
        this.entityPackage = entityPackage;
    }

    public void setMapperLocations(String mapperLocations) {
        this.mapperLocations = mapperLocations;
    }

    public String getEntityPackage() {
        return entityPackage;
    }

    public boolean isCacheEnabled() {
        return cacheEnabled;
    }

    public Class<? extends Log> getLogImpl() {
        return logImpl;
    }

    public String getMapperLocations() {
        return mapperLocations;
    }
}
